+Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
+ Don't crash if item is NULL. (#131542, Dan Damian)
+
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
* configure.in: Add a check for a new enough fontconfig, since
+Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
+ Don't crash if item is NULL. (#131542, Dan Damian)
+
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
* configure.in: Add a check for a new enough fontconfig, since
+Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
+ Don't crash if item is NULL. (#131542, Dan Damian)
+
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
* configure.in: Add a check for a new enough fontconfig, since
+Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
+ Don't crash if item is NULL. (#131542, Dan Damian)
+
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
* configure.in: Add a check for a new enough fontconfig, since
+Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
+ Don't crash if item is NULL. (#131542, Dan Damian)
+
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
* configure.in: Add a check for a new enough fontconfig, since
completion->priv->text_column, &item,
-1);
- normalized_string = g_utf8_normalize (item, -1, G_NORMALIZE_ALL);
- case_normalized_string = g_utf8_casefold (normalized_string, -1);
-
- if (!strncmp (key, case_normalized_string, strlen (key)))
- ret = TRUE;
-
- g_free (item);
- g_free (normalized_string);
- g_free (case_normalized_string);
+ if (item != NULL)
+ {
+ normalized_string = g_utf8_normalize (item, -1, G_NORMALIZE_ALL);
+ case_normalized_string = g_utf8_casefold (normalized_string, -1);
+
+ if (!strncmp (key, case_normalized_string, strlen (key)))
+ ret = TRUE;
+
+ g_free (item);
+ g_free (normalized_string);
+ g_free (case_normalized_string);
+ }
return ret;
}